listbox: Make sure page down/up move at least one row
authorTimm Bäder <mail@baedert.org>
Tue, 19 Apr 2016 15:12:00 +0000 (17:12 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 22 Apr 2016 03:11:38 +0000 (23:11 -0400)
commit0815b21ad4e0d05367fc709765593c00997f33a3
treebbe5e737045c050d26d2fe68518e19fdf51ced27
parent7a7e3fc0e3460c5f58b1ec1a35ecd66bc9409910
listbox: Make sure page down/up move at least one row

When the current cursor_row is taller than the page_size we get from the
GtkAdjustment, the previous code would not actually cause any scrolling,
so make sure we just take the row after or before the cursor_row in that
case.

https://bugzilla.gnome.org/show_bug.cgi?id=765261
gtk/gtklistbox.c